package com.StarStudio.DAO;

import com.ruoyi.common.core.Entity.GoodsEvaluation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface GoodsEvaluationDAO {

    void insertGoodsEvaluation(GoodsEvaluation goodsEvaluation);

    int updateGoodsEvaluation(GoodsEvaluation goodsEvaluation);

    List<GoodsEvaluation> selectGoodsEvaluation(GoodsEvaluation goodsEvaluation);

    void deleteGoodsEvaluation(Long id);

    List<GoodsEvaluation> selectStoreRecentlyEvaluation(Long storeId);

    List<GoodsEvaluation> selectRecentlyEvaluation();

    long findAllRecordNumber();

    List<GoodsEvaluation> selectStoreGoodsEvaluation(@Param("ge") GoodsEvaluation ge,@Param("storeId") Long storeId);

    long findStoreAllRecordNumber(Long storeId);

    List<GoodsEvaluation> getGoodsEvaluationByGoodsId(Long goodsId);
}
